<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSLessonFeedBack extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('s_lesson_feed_back', function (Blueprint $table) {
            $table->increments('id');

            $table->integer('lesson_id')->comment("课堂id")->index();
            $table->string('title')->comment("反馈标题");
            $table->string('content')->comment("反馈内容");
            $table->integer('status')->comment("状态 0：待审核，1：不通过；2，通过");
            $table->integer('admin_id')->comment("审核人");

            $table->timestamps();
            $table->SoftDeletes();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
